package zhh.tangbao.syslog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import zhh.tangbao.syslog.entity.WorkRecord;

/**
 * <p>
 * 描述
 * </p>
 *
 * @author 粥灰灰
 * <p>2023/4/25</p>
 */

@Repository
@Mapper
public interface WorkRecordDao extends BaseMapper<WorkRecord> {

    @Select("SELECT * FROM work_record WHERE record_user_id = #{id} ORDER BY record_time DESC LIMIT 1")
    WorkRecord getRecentlyRecordByRecordUserId(@Param("id") String id);
}
